/***********************************************************************
 * Module:  Rival.java
 * Author:  ZhangYQ
 * Purpose: Defines the Class Rival
 ***********************************************************************/

package office.bo.sale.impl;

import current.security.user.domain.User;
import office.bo.sale.IRival;
import office.domainset.BizDomainProviderSetImpl;
import platform.common.bo.PersistenceBO;
import platform.common.dao.IDomainProviderSet;
import platform.common.exception.BusinessException;
/**
 * 竞争对手信息
 * @author ZhangYQ
 *
 */
public class Rival extends PersistenceBO implements IRival {
	private static final long serialVersionUID = 1L;
	private String unitName;    //单位名称
	private String projectName; //项目名称
	private String serviceYear; //服务年份
	private String relationLead;//与哪位领导联系
	private String measure;     //采取的措施
	private String myMeasure;   //我方措施
	private String createUser;  //创建人
	private String createUserName; //创建人中文名
	/**
	 * 获取用户对象
	 * @param domainProviderSet
	 * @return
	 * @throws BusinessException
	 */
	public User getUser(IDomainProviderSet domainProviderSet) throws BusinessException{
		User user=null;
		try {
			BizDomainProviderSetImpl domainProviderSetImpl = (BizDomainProviderSetImpl) domainProviderSet;
			if(this.createUser==null){
				return null;
			}
			user=(User)domainProviderSetImpl.getDao().findByIdAndDomain(domainProviderSetImpl.getUserDP(), this.createUser);
		} catch (Exception e) {
			throw this.handleBusinessBOException(e);
		}
		return user;
	}
	public String getProjectName() {
		return projectName;
	}
	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}
	public String getUnitName() {
		return unitName;
	}
	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}
	public String getServiceYear() {
		return serviceYear;
	}
	public void setServiceYear(String serviceYear) {
		this.serviceYear = serviceYear;
	}
	public String getRelationLead() {
		return relationLead;
	}
	public void setRelationLead(String relationLead) {
		this.relationLead = relationLead;
	}
	public String getMeasure() {
		return measure;
	}
	public void setMeasure(String measure) {
		this.measure = measure;
	}
	public String getMyMeasure() {
		return myMeasure;
	}
	public void setMyMeasure(String myMeasure) {
		this.myMeasure = myMeasure;
	}
	public String getCreateUser() {
		return createUser;
	}
	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}
	public String getCreateUserName() {
		return createUserName;
	}
	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}
	
	
}